﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Reflection;
using DotSpatial.Controls;
using System.ComponentModel.Composition;

namespace DotSpatial.SampleProjects.SampleProjectManager
{
    ////[InheritedExport(typeof(IProjectTemplate))]
    //public class BaseProjectTemplate : IProjectTemplate
    //{
    //    public void Open(AppManager app)
    //    {
    //        //finds the project files in my directory
    //        string dir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
    //        string[] files = Directory.GetFiles(dir, "*.dspx", SearchOption.AllDirectories);

    //        if (files.Length > 0)
    //        {
    //            app.SerializationManager.OpenProject(files.First());
    //        }
    //    }
    //}
}
